Turtle and Observer Command

count-turtles-with [ilist]

Returns the number of turtles whose ilist is true.
Example: show count-turtles-with [(distance 0 0) < 5]
This gives thenumber of turtles inside a circle of radius 5 centered at the origin.

Related commands: