Implemented simple statistics