CountPlanets(q:Expr):Int

Count number of planets satisfying a condition. The expression q is evaluated for each planet, and the planet is counted if it returns true.

This function is (almost) equivalent to Count(Planet, q).

Since: PCC 1.0.11, PCC2 1.99.9

See also: Elementary Functions