Add support for stats root and count stats endpoint

Fix #189

Signed-off-by: Byron Ruth <b@devel.io>