. In this case the method returns a promise which is resolved when the asynchronous task is completed.
Also, you can use PowerFields
for retrieving counts if this will fit better your scenario.
Please, let me know if you have further questions.