Fix and optimize Statistics

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

Fix and optimize Statistics