Issue refs #1598: add counter method, extend json model for view needs, update api-client