Hello- Promise, I searched before posting, but can't find a solution.

Simple question which hopefully has a simple solution:

- Is there a way to disable a button after a user has clicked it X number of times (3?)?

Thanks in advance for the help.
- Mr. Bill