handle no referrer
Merge branch 'master' of github.com:diefenbach/django-lfs
use count instead of len