Merge pull request #24 from lpotter/master

fix-up Counter API, and add to declarative
make sure to emit signal after cache is updated.

remove un needed call