count num combinations