script for read statistics