Initial work on stats counter, doesn't use any vecotirized stuff or anything nice but it starts to work :)

Working* code :)
These two lines aren't needed. The default values of args in init should take care of everything.