Turtle Command

count-turtles-here

Returns the number of turtles sitting on the caller's patch.

Examples:

if count-turtles-here > 2 [setc blue] makes the turtle set its color to blue if there are more than two turtles on its current patch.

Related commands:
count-turtles count-turtles-at count-turtle-towards