Fix #649 - add Counter class to collections module

Now including code from more recent versions of Python