I think the reason that you get 2 triggers, is because it sends a trigger on both on and off, when you hit the key and when you release the key.
Something like a simple logic statement, like == 1 should fix it.
So try using a an equal to object: ==
And put a ctrl/i with a setting of 1 for the second inlet and the counter value on the first inlet
Then it will only trigger when you hit the key and not on release.