Display post count for a specific month

here is correct answer if someone need

$aprel = get_queried_object();

///////////////////////////////////////////////////
$aprelpost = array(
 'post_type' => 'sikayet',
 'post_status'=>'publish',
    'tax_query' => array(
        'relation' => 'AND',
        array(
            'taxonomy' => 'sectors',
            'field'    => 'slug',
           'terms'    => $aprel->slug,
        ),  
   ),
      'date_query' => array(
        'year'  => 2021,
        'month' => 3
    )
);
$aprelpost_query = new WP_Query ( $aprelpost );


$ap = $aprelpost_query ->post_count ;
echo ($ap);

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