adds support for getting number of lines for given FILE pointer