This is not a C programming problem at all.

It is easy to create a program with an icon, and record number of mouse clicks on that icon. The techniques to do that depend on your host operating...