(i deleted the duplicate post, here’s my previous answer again, and check the above for the server-side “how to”… no need to post twice…)
depends if you want it “per user”, so each user keeps a count of his clicks => shared Object
or for you to total clicks of all users and a particular button => server-side, PHP, ASP, Perl etc incrementing counter var in textfile or database (really easy)…
i´m in a laboratory with a few computers… 30 and the students come here and access to diferent urls…
cause the area doesn´t have a server yet, i design a movie clip and save it into the HD in all machines so there es were in need to save the data…
and obviously shows up diferent number in any computer…