Rule:
You can put both ‘a/an’ and ‘the’ in front of a count noun.
You use ‘an (not a)’ when the next word (adverb, adjective, noun) starts with a vowel sound. (hour, honor, honest, heir).