A and an signal that the noun modified is indefinite, referring to any member of a group. These indefinite articles are used with singular nouns when the noun is general; the corresponding indefinite quantity word some is used for plural general nouns. The rule is:
a + singular noun...