Added support for Python 2.6 with a custom counter class from the Intern...

...et with no license restrictions and a small change to views.py

Counter.py is from http://code.activestate.com/recipes/576611-counter-class/ with an MIT License.

This should make it run without any issues on Python 2.6.