Rewrite count(constant) to count(*)