Question: Is their any way of counting number of django logins?
The last\_login field of the auth\_user gets updated with each login.
Can we make use of that field to count number of logins by a specific user?

Answer: 
This is how I did (using django 1.7), similar to Guy Bowden answer:

```
from django.contrib.auth.models import User
from django.contrib.auth.signals import user_logged_in

class LoginUpdate(models.Model):
    date_updated = models.DateTimeField(auto_now_add=True, null=True)
    action_type = models.CharField(max_length=5)
    action_user = models.ForeignKey(User, null=True, blank=True)

def update_user_login(sender, **kwargs):
    user = kwargs.pop('user', None)
    LoginUpdate.objects.create(action_type="Login", action_user=user)

user_logged_in.connect(update_user_login, sender=User)

```

Later you can count number of logins, in your views.
You can use [django-timeStamps](https://github.com/zandegran/django-timeStamp) to store rcent login times. A simple light weight tool.