new SQL function: swh_stat_counters()
returning the number of tuples in various tables
expose it through the Python layer