added /stats api to show occurrences