cara mengembalikan total elemen dalam database django

use ".count()"

Example:-
Number_of_Messages = Messages.objects.count()
Markhor