c# bool list count true

C#
return list.Count(x => x)
Source

Also in C#: