Counting the number of appearance of Tuples in a Vector

That was my first thought too, but is not what the original code does.