how to count/sum boolean data formula

Hello my firends! How have you been?


Would be possible to have a logical formula to checks whether a bollean range and than return that sum of them. 

for example: if I got two lines with 4 stars  the formula should identify into the range both lines and returns 2 as total