Fix inconsistencies in stats count (bug 1014752)
Merge pull request #163 from davidbgk/1014752-fix-inconsistencies

Fix inconsistencies in stats count (bug 1014752)