Please check
public int CountBooleanValue(object data)
{
int count = 0;
foreach (PropertyInfo propertyInfo in data.GetType().GetProperties().Skip(5))
{
if (propertyInfo.PropertyType == typeof(bool))
{
bool value = Convert.ToBoolean(propertyInfo.GetValue(data, null));
if (value == true)
{
count++;
}
}
}
return count;
}