I made a custom function based on the wp_get_archives function from wp-includes/general-template.php. I simply replaced the “$after =” with “$text .=”
Here’s an example:
if ( $show_post_count )
$after = ' ('.$arcresult->posts.')' . $afterafter;
becomes:
if ( $show_post_count )
$text .= ' ('.$arcresult->posts.')' . $afterafter;