It seems to work here [0] (unless I have misunderstand the issue).
[0] http://sandbox.semantic-mediawiki.org/wiki/CountExample
James Hong Kong (talk)