[BUGFIX] Persistence: Fix count queries with parameters
[BUGFIX] Persistence: Fix count queries with parameters

Change-Id: Ia6b5f594012963cf54b542a62892da789832a97c
Resolves: #27170
Original-Commit-Hash: ce5f26c6d02086be85b178500f2aa03d539b54a0

dlubitz/flow-development-collection,mkeitsch/flow-development-collection,mkeitsch/flow-development-collection,dfeyer/flow-development-collection,kdambekalns/flow-development-collection,aertmann/flow-development-collection,kitsunet/flow-development-collection,kitsunet/flow-development-collection,robertlemke/flow-development-collection,dlubitz/flow-development-collection,neos/flow-development-collection,chewbakartik/flow-development-collection,chewbakartik/flow-development-collection,daniellienert/flow-development-collection,kdambekalns/flow-development-collection,aertmann/flow-development-collection,fcool/flow-development-collection,bwaidelich/flow-development-collection,neos/flow-development-collection,kitsunet/flow-development-collection,neos/flow-development-collection,albe/flow-development-collection,dfeyer/flow-development-collection,robertlemke/flow-development-collection,robertlemke/flow-development-collection,robertlemke/flow-development-collection,fcool/flow-development-collection,neos/flow-development-collection,daniellienert/flow-development-collection,kdambekalns/flow-development-collection,mkeitsch/flow-development-collection,gerhard-boden/flow-development-collection,gerhard-boden/flow-development-collection,dfeyer/flow-development-collection,albe/flow-development-collection,bwaidelich/flow-development-collection,fcool/flow-development-collection,dfeyer/flow-development-collection,aertmann/flow-development-collection,albe/flow-development-collection,chewbakartik/flow-development-collection,fcool/flow-development-collection,kdambekalns/flow-development-collection,gerhard-boden/flow-development-collection,dlubitz/flow-development-collection,bwaidelich/flow-development-collection,daniellienert/flow-development-collection