Check the number of lines