code to count reads from fast files