A command that counts the number of objects of a specified class in the specified object container.
- macOS 10.0+
An instance of
NSCount counts the number of objects of a specified class in the specified object container (such as the number of words in a paragraph or document) and returns the result.
NSCount is part of Cocoa’s built-in scripting support. It works automatically to support the
count command through key-value coding. Most applications don’t need to subclass
NSCount or call its methods.