Found the answer so may as well post it. I followed the code to the qa_db_popular_tags_selectspec function and that is using the constant QA_DB_RETRIEVE_TAGS to limit the tags.
So I put this line in qa-config.php and it increases the number of tags:
define('QA_DB_RETRIEVE_TAGS', 500);