diff --git a/nyaa/templates/user.html b/nyaa/templates/user.html
index 21b59ad..700db70 100644
--- a/nyaa/templates/user.html
+++ b/nyaa/templates/user.html
@@ -151,6 +151,9 @@
Browsing {{ user.username }}'{{ '' if user.username[-1] == 's' else 's' }} torrents
+ {% if torrent_query.total is number and not search.term: %}
+ ({{ torrent_query.total }})
+ {% endif %}
{% include "search_results.html" %}
diff --git a/nyaa/torrents.py b/nyaa/torrents.py
index 42d5ce4..b5668e9 100644
--- a/nyaa/torrents.py
+++ b/nyaa/torrents.py
@@ -1,6 +1,6 @@
import base64
import os
-from urllib.parse import urlencode, quote
+from urllib.parse import quote, urlencode
import flask
from flask import current_app as app