This function tells you how many visitors clicked how many times in a given timeframe.
Just change the first variable in the counter_count function on the last line to point to a writeable file and include this file in your pages where you want the counter to appear.