title: How to count the number of letters and row a text in tkinter text widget?
body: <p>I want to count the number of letters and row a text in tkinter text widget.
  This is my sample code:</p>
  
  <pre><code>from tkinter import *
  
  def letter_refresh():
      pass   
  
  def row_refresh():
      pass
  
  app=Tk()
  
  label=Label(text='writing')
  label.grid(row=1, column=0)
  
  text = Text( )
  text.insert(1.0,"abcd\nefgh\n\nijkl\nmnop")
  text.grid(row=1,column=1,padx=5, pady=20)
  
  
  letter=Button(text='letter_count', command = letter_refresh)
  letter.grid(row=2, column=0,padx=1, pady=1)
  
  letter_display=Entry()
  letter_display.grid(row=2, column=1,  padx=5, pady=5,sticky=W)
  
  
  
  row=Button(text='row_count', command = row_refresh)
  row.grid(row=3, column=0,padx=1, pady=1)
  
  row_display=Entry()
  row_display.grid(row=3, column=1,  padx=5, pady=5,sticky=W)
  
  app.mainloop()
  </code></pre>
  
  <p>I want to <code>letter_count</code> result is 16, if <code>letter_count</code> botton push. </p>
  
  <p>I want to <code>row_count</code> result is 4, if <code>row_count</code> botton push. </p>