Sum root term’s entries count from child terms count

Try something like this:

<?php 

    $children = get_term_children( $parent_term, $taxonomy );

    $child_count = count($children);

?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)