Factor ec2/instances into two functions, allows us to get the "true" instance count, according to EC2 instance limit.
Factor ec2/instances into two functions, allows us to get the "true" instance count, according to EC2 instance limit.

circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend,circleci/frontend,prathamesh-sonpatki/frontend