Listening for roster items

Hi all

How can I listen for the roster element “item” as it being recd. during getRoster ?

I would like to count the number of items recd during getRoster - not after whole packet has been recd.

Any help would be cool.

Many thanks

Johnny