If I have a method that requires a parameter that,
Count propertyWhat should the type
What you need is the IReadOnlyCollectionIEnumerable which has Count as the property but if you need indexing as well then you need IReadOnlyList which would also give an indexer.
I don't know about you but I think this interface is a must have that had been missing for a very long time.