Add g.stats.count_string and start counting user agents.
Update stats_test to reflect timing API changes.
Convert value to str when counting strings.