my $average = sprintf "%.2f",($total/$counter);