Show post count in custom taxonomy page

İ found a solution:

$posts = get_queried_object();
echo $posts->count;

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