Double/Triple Tap Automation Trigger

I have a number of switches that perform the usual on/off duties for lights.
What is considered best practice for using multiple toggles in quick succession as an automation trigger?
I expect you could interrogate the state last_changed attribute of the entity to detect a double-tap, but scaling beyond (3 or more toggles) seems like it would need a bunch of template switches and timers.
Has anyone had any success in triggering automatons like this?