Remove useless imports
Get rid of Counter, not supported in Python < 2.7