A way to see how many lines are in textbox

Like it says. I was wondering if anyone knew the code to count how many lines are being used by the text. And yes the above example has 3 lines (dont know why u said this).