If Unique [ pos ] can be added to the Subset
if ( check ( pos , currSubset , unique ) ) { return countPrime ( pos + 1 , currSubset , unique , frequency ) + countPrime ( pos + 1 , currSubset + [ unique [ pos ] ] , unique , frequency ) ; } else { return countPrime ( pos + 1 , currSubset , unique , frequency ) ; } }