Question: 1. Write a program that counts the number of times the mouse has been clicked. Display that number in the center of the window.
2. Write a program that creates a polyline shape dynamically using mouse clicks. Each mouse click adds a new line segment from the previous point. Include a button below the drawing area to clear the current polyline and begin another.