count by sample size