I need to count all the children that are in my Firebase database.
This is the Firebase structure:
Level 1
- CHILD1
- - subchild1
- - subchild2
- CHILD2
- - subchild 1
How can I count the CHILDs from level 1? (In this example it would need to return 2...)