You can count how many are checked....quite a few ways to do this. Here's two methods (there are more than this though):
Using a loop


int x = 0;
for ( int i = 0; i < 3; i++ ){
if (...