i want to show the count of question and ansers

6.46K viewsCore
0

so i use this code

<?php
$count_posts = wp_count_posts(Questions);
echo $count_posts->publish;
?>

it’s not working idont know why
is the custom post have another name ?
if so what is the name of the custom post for questions and answers