Improved Utility Functions

I want to use this in some of my upcoming fixers.
Wouldnt someone be more interested in linecount of content itself?
a line can end with newline and either have more content or not, with countLines you would know about both, while countNewlines() can return 2 and have either 2 or 3 lines