Returns the count associated with a given object in the set.
Original signature is '- (NSUInteger)countForObject:(id)anObject'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public virtual NSUInteger CountForObject( Id anObject )
Public Overridable Function CountForObject ( _ anObject As Id _ ) As NSUInteger
public: virtual NSUInteger CountForObject( Id^ anObject )

- anObject (Id)
- The object for which to return the count.

The count associated with anObject in the set, which can be thought of as the number of occurrences of anObject present in the set.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)