Added support for Python 2.6 with a custom counter class from the Internet with no license restrictions and a small change to views.py