I have investigated this in greater depth and created a solution, which you can see here: Code component to count mouse clicks
I have investigated this in greater depth and created a solution, which you can see here: Code component to count mouse clicks