This sample code works similarly to the Count table rows (conditional) sample, but instead of counting the number of drop downs, this sample counts the number of users listed inside tables.
Sample Image
Sample Code
Notes
Refer to the Tutorial page, on how to add scripts to your app.