Implemented Iterator and Countable for the Gateways