Fixed Counter not calculating averages right