Update counter.py

Now prints out number of test cases passed.