Added counter for number of AI to set up.