Helper functions for counting dependants