count possible sets