update graph size counts in the stats db