Change to `count(_ == 0.0)`, which is more common in Spark.