Turtle and Observer Command

count-turtles-with [list of commands]

Returns the number of turtles whose [list of commands] is true. Note [list of commands] must be a boolean statement and return true or false.

Examples:
count-turtles-with [(distance 0 0) < 5] returns the number of turtles inside a circle of radius 5 centered at the origin.

Related commands:
count-frogs-with myself