Use Count/Length property instead of Count()

Proprietary

Replace collection.Count() with collection.Count when available.

OpenRewrite.Recipes.CSharp.CodeQuality.Performance.UseCountProperty
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Performance.UseCountProperty

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.