v.24.8Bug Fix

Fix count() result with non-deterministic function in predicate

Fix wrong count() result when there is non-deterministic function in predicate. #67922 (János Benjamin Antal).