Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
Collect traffic statistics, yes and no. For the most part, counters just have current values which can be polled for, generally from an external SNMP management system, although later IOSs have scripting capabilities which, I believe, can poll locally and "decide" what to do with the data.
On such IOSs with scripting, I beleive it might be possible to script something like getting show interface and sending it somewhere, but SNMP stats would more what you would expect when "Service Provider".
There are some cumulative stats that can collected on the device, often by enabling configuration options. For instance one such option, Netflow, can kept some local information as well as exporting stats to a system designed to collect them.
If you want to pursue this question, suggest posting to Network Infrastructure - Network Management,