Statistics

First layer of statistics done.