Function to count and return the number of values less than equal to N present in the set
function count ( v , n ) { let i , odd = 0 , even = 0 ; let j , d , count ; let t = 1 << v . length ; let size = v . length ; for ( i = 1 ; i < t ; i ++ ) { d = 1 ; count = 0 ; for ( j = 0 ; j < size ; j ++ ) {