Red book operator counts the number of objects on the operand stack, starting with the top element and continuing down to but not including the first mark encountered.
Core code registered in systemdict.