[swift] How to track the rest api call count