countBy test