The type you are using is IEnumerable, which does not have the Count property. But the general equivalent of IEnumerable (T) has the Count property.
The obvious solution is to use IEnumerable (T), but if you cannot, you can do something like this:
_myList.Cast<MyListItemType>().Count()
Listing is an easy way to convert IEnumerable to IEnumerable (SomeType), but obviously this is not the best way to get a performance counter.
If performance is a factor, I would just skip the values ββto get the score, if you don't know that the base collection has the Count property (see Jon Skeet answer ...).
source share