The URL dispatcher does not match against GET query parameters, so if you had a URL pattern such as url(r'^get_count$', view, name='get_count'), then you simply reverse the URL and append the GET query, such as:
from django.core.urlresolvers import reverse
from urllib import urlencode
query = (('sex', 5), ('sex', '6'), ('city', 5), ('city', 7))
url = `%s?%s` % (reverse('get_count'), urlencode(query))
You should do this in your view as it gets a bit convoluted to accomplish the same in your templates, unless your going to write static queries, such as:
{% url 'get_content' %}?sex=5&sex=6&city=5&city=7
If your trying to filter a queryset dynamically by inspecting request.GET in your views, then I suggest you have a look at django-filter. It takes no time at all to integrate it and it will sanitize and validate the GET query, the importance of which developers often overlook and introduce security holes. Using it is as simple as passing request.GET to your defined filter and you get the filtered queryset immediately.