from functools import partial
import tkinter as tk

def on_click(label: tk.Label,
             counter: tk.IntVar) -> None:
    counter.set(counter.get() + 1)
    label[] = f

def main():
    window = tk.Tk()
    window.geometry()
    label = tk.Label(master=window,
                     text=)
    label.pack()
    counter = tk.IntVar()
    update_counter = partial(on_click,
                             label=label,
                             counter=counter)
    button = tk.Button(master=window,
                       text=,
                       command=update_counter)
    button.pack()
    window.mainloop()

if __name__ == '__main__':
    main()