[SPARK-4829] [SQL] add rule to fold count(expr) if expr is not null