How do I count the number of times an element is displayed using C#

How do I count the number of times an element is displayed using C#?

what have you tried?

Its as simple as findElements.(by.whatever).count

I tied that. I got the following error

Error CS0201 Only assignment, call, increment, decrement, and new object expressions can be used as a statement

post your code please