v.24.7Bug Fix

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

Fix wrong count() result when there is non-deterministic function in predicate. #66510 (Duc Canh Le).