nlines function

Number of lines required to print a value