do not open the file jsut to count the lines