How to count mobile objects?

For further actions to list, you should refer to Groovy Documentations here. They have all the information you need to do with the list.