issue #21229: add tests for count transform
issue #21229: count has to be inside data
issue #21229: bugfix
Merge pull request #1217 from shackbarth/21229

issue #21229: bugfix to REST count