Count generated samples