Tap the button in time with a song. The light on the button indicates how accurate the measurement is. (Red is bad, green is good.) Once you have an accurate measurement, you can double-click on the digits to set the tempo in iTunes. When you want to measure another song, just start tapping the button again.
Mac OS X 10.4.3 or later
*Previously available here