Finding the number of possible combinations