Index: src/includes/users/functions.php
===================================================================
--- src/includes/users/functions.php	(revision 6069)
+++ src/includes/users/functions.php	(working copy)
@@ -1810,6 +1810,8 @@
 	$bbp_db = bbp_db();
 	$where  = get_posts_by_author_sql( bbp_get_topic_post_type(), true, $user_id );
 	$count  = (int) $bbp_db->get_var( "SELECT COUNT(*) FROM {$bbp_db->posts} {$where}" );
+	// Manually add the user closed topic count, see #bbPress2978 and #WP12706
+	$count  = $count + bbp_get_user_closed_topic_count( $user_id );
 
 	return (int) apply_filters( 'bbp_get_user_topic_count_raw', $count, $user_id );
 }
@@ -1842,6 +1844,32 @@
 }
 
 /**
+ * Return the raw database count of closed topics by a user
+ *
+ * @since 2.6.0 bbPress (rXXXX)
+ *
+ * @param int $user_id User ID to get count for
+ *
+ * @return int Raw DB count of user closed topics
+ */
+function bbp_get_user_closed_topic_count( $user_id = 0 ) {
+	$user_id = bbp_get_user_id( $user_id );
+	if ( empty( $user_id ) ) {
+		return false;
+	}
+
+	$bbp_db = bbp_db();
+	$count  = (int) $bbp_db->get_var( "SELECT COUNT(*)
+		FROM {$bbp_db->posts}
+		WHERE post_type = '" . bbp_get_topic_post_type() . "'
+		AND post_status = '" . bbp_get_closed_status_id() . "'
+		AND post_author = $user_id;"
+	);
+
+	return (int) apply_filters( 'bbp_get_user_closed_topic_count', $count, $user_id );
+}
+
+/**
  * Bump the topic count for a user by a certain amount.
  *
  * @since 2.6.0 bbPress (r5309)
Index: tests/phpunit/testcases/users/functions/counts.php
===================================================================
--- tests/phpunit/testcases/users/functions/counts.php	(revision 6069)
+++ tests/phpunit/testcases/users/functions/counts.php	(working copy)
@@ -182,6 +182,15 @@
 
 		$count = bbp_get_user_topic_count_raw( $u );
 		$this->assertSame( 6, $count );
+
+		$t = $this->factory->topic->create( array(
+			'post_author' => $u,
+		) );
+
+		bbp_close_topic( $t );
+
+		$count = bbp_get_user_topic_count_raw( $u );
+		$this->assertSame( 7, $count );
 	}
 
 	/**
