title: Getting the total number of lines in a Tkinter Text widget?
body: <p>I have a Tkinter <code>Text</code> widget, and I'd like to know how many lines it contains. </p>
  
  <p>I know of the <code>text.cget("height")</code> method, however that only tells me how many lines are displayed. I'd like to know how many lines there are total. </p>
  
  <p>I'm using this info to try to make my own custom scrollbar, so any help would be much appreciated. </p>