main_header.tpl? Well, not sure if I know the template of such filename in miniBB :) I suppose, you mean templates/main_header.html.
..
If so, I'm also afraid there is no simple way to get the number of user topics in the default version.
You may try to modify bb_cookie.php for that.
Look up for the following string:
$GLOBALS['dbUserSheme']['num_posts'][1]
It should be extended to have the other field after it:
$GLOBALS['dbUserSheme']['num_posts'][1].', '.$GLOBALS['dbUserSheme']['num_topics'][1]
Then where it says
$GLOBALS['user_num_posts']=$row[X];
add the following:
$GLOBALS['user_num_topics']
=$row[X+1];
for example, for the admin procedure, it should look like:
$GLOBALS['user_num_topics']
=$row[3];
for regular users procedure, it may look by default like:
$GLOBALS['user_num_topics']
=$row[7];
Only after you have updated this file, you may refer to the topics amount in any template as to:
{$user_num_topics}