sample table before count