Identifying the number of combinations