Basic stats

Fixes #8. @cleme can you please review?