Counting visits

- Basic version
Rewritten to @Api

- Added json in/out object