Add a function to count the available children of a device. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>