The documentation covered only the usage of Django-Hitcount in a class-based view.
from hitcount.views import HitCountDetailView
class PostCountHitDetailView(HitCountDetailView):
model = Post # your model goes here
count_hit = True # set to True if you want it to try and count the hit
Is there any way to use it in a function?