MDL-37165 Assignment: Oracle fix for count_submissions_with_status (and friends).