count & chunking