from _10gen import db

n=db.nPyPageLoads.findOne() or {'count':0}
n['count'] = n['count'] + 1
db.nPyPageLoads.save(n)

print "<html><body>This page has been loaded "
print n['count']
print " times. "
print '<a href="/admin/doc?f=/py/counter.py">[code]</a>'
print "<p>"
