you should be able to just do a count of the returned results. Not sure if this will cause problems with your outer query, but if you want to post that with some sample data I can build a fiddle and fix it up real quick.
SELECT
COUNT(first_count) -- first_count is the alias i gave the subquery count. so its a count of the number of rows returned in the subquery's count
FROM(
SELECT
COUNT(cust_id) AS first_count
FROM a_bkorders.order_headers
WHERE date_format(order_date,'%Y/%m') = Prevmonth(curdate(),1)
OR date_format(order_date,'%Y/%m') = PrevMonth(curdate(),2)
GROUP BY cust_id
) AS temp; -- all tables need to have an alias
you may not even want to do a count in your subquery... unless you need the number of books that those customers ordered as well. you could just SELECT COUNT(DISTINCT cust_id) FROM....
to get the number of unique id's.