Add a COUNT function in calculated properties

My use case would be to use it on multiple checkboxes to count the number of values selected in a very simple way.

I tried a workaround using the “contains” function (check if property contains a semi column, saying that there are at least 2 values checked), but this function only returns a true/false answer instead of the number of time this string exists.