Why don't you run a query something as below...
/* You may wrap below code within a function for reuse */
// get loggedin userid
$uid = qa_get_logged_in_userid();
// query for question (type=Q)
$query = "SELECT title FROM ^posts WHERE type=$ AND userid=#";
// execute query
$result = qa_db_query_sub($query, 'Q', $uid);
// get count
echo qa_db_num_rows($result);