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).

See also: Elementary Functions

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.