Gets the total number of lines in the file.
Convenience method that delegates to file.buffer.get_line_count(). Requires file.buffer to be non-null. Ensure buffer is created before use.
Line count, or 0 if not available