list custom taxonomy with count

<?php
$taxonomy = 'judges';
$tax_terms = get_terms($taxonomy);
?>
<ul>
<?php
foreach ($tax_terms as $tax_term) {
echo '<li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy)) . '" title="' . sprintf( __( "View all shows for %s" ), $tax_term->name ) . '" ' . '>' . $tax_term->name . '(' . $tax_term->count . ')</a> </li>';
}
?>
</ul>

Try that?

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