Update pystore.py

add total counter