How to perform multiple click event in ionic

I wanna have an img or a button, that I’d like to click 5 times and then execute a function, how can I achieve this? I searched around and best I got was double clicking, what about 5 times

You can call a function in your button, let’s call it functionA () that, when it gets called 5 times, you call functionB ()

You can use Hammer JS, which supports many types of gestures in mobile, their tap events also contain the tapCount attribute, which should be what you want