moving sample table before count