How many military colonies were established by the state?