Fix and optimize Statistics

- Fix Monitor Count
- Do not all SQL-Queries for one getStatistic call
Merge pull request #6 from tck/patch-4

Fix and optimize Statistics