Updated to work with python 2.6, provided "counter" and "ordereddict" ar...

...e installed from pip.
It fixes #2.