fixes #742, #590: add new counts controller api