Turtle, Patch

count-turtles-here-with [condition]

Parameters:
[condition] List of turtle commands list of commands that evaluates to either true or false

Description:
Returns the number of turtles on the caller's patch that meets the condition specified in [condition].

Examples:
if count-turtles-here-with [color = red] > 1
[fd 1]

This will cause all of the turtles on a patch with more than one red turtle on it to move forward one.