script for read counting using log files