Source

tweet2prowl / context_processors.py

Full commit
from django.conf import settings

from tweet.models import TwitterUser

def stats(request):
    limit = settings.USER_LIMIT
    count = TwitterUser.objects.count()
    return {
            'max_users': limit,
            'count': count,
            'remaining': max(limit - count, 0),
    }