The BranchCollection class defines the following properties:
BranchCollection.Count
BranchCollection.IsEmpty