title: How to make tkinter counter when click on botton
body: <p>i'm beginner for python i try to make counter when click on button but its not working as i expect </p>
  
  <p>what i really need when i click on button its will add number like 1,2,3 but this result is 1111111</p>
  
  <pre><code>from tkinter import *
  
  root = Tk()
  root.title("Counter")
  root.geometry("100x100")
  
  def count():
      c = 0
      c += 1
      entry.insert(0,c)
  
  button = Button(text="Count",command = count,)
  label = Label(text="Time")
  entry = Entry(root)
  label.pack(side = TOP , pady = 5)
  entry.pack(side = TOP , pady = 5)
  button.pack(side=TOP , pady = 5)
  mainloop()
  </code></pre>