count number of lines