The alphabet of a fictionary tribe consists of three letters: A, O and M. Any combination of no more than four of these letters is considered a word. How many words are does this tribe's language have?