Provide a count method like a sequence.
name (str, regexp, or
Stoner.Core.metadataObject) – The thing to count matches for.
(int) – The number of matching metadataObject instances.
If name is a string, then matching is based on either exact matches of the name, or if it includes a * or ? then the basis of a globbing match. name may also be a regular expressiuon, in which case matches are made on the basis of the match with the name of the metadataObject. Finally, if name is a metadataObject, then it matches for an equyality test.