I'm farelly new to the MIT APP INVENTOR and Firebase so here it goes.
I'm trying to get the amount of times a certain value exists in a Table. So let's say I want to see how many times "francisco" has claimed codes so it would be 3 in this case.
If you don't want to download the entire table, you would have to revise your data storage tree in FireBase, adding or replacing your tags to store by name instead of by ID, as a secondary index.
By The Way, here is a link to a discussion of how to structure data for this type of problem when there is a lot of data.
(The version of FireBase might not be exact, but the concept applies.) https://firebase.google.com/docs/database/web/structure-data