You can perform an expansion that returns a count of the objects. The following example shows a query for Plants, which expands to the Area and then onto the Unit object, and includes a count of the Areas and Units:
. . /api/v1/Plants?$expand=Functional_Areas($expand=Functional_Units($count=true);$count=true)