Find the number of strings of length N, given any alphabet.