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