Corrected counting error