Invenio-Stats is on PyPI so all you need is:
$ pip install invenio-stats
Invenio module for collecting statistics.