This needs to have a proper name (`lineCount` maybe?) and some documentation.