NB API for packet count statistics. analytics.py demonstrates how to use it.