At first , the Ain had 9 districts , 49 cantons and 501 communes .
Ain is subdivided into 9 districts , 49 cantons and 501 communes .