'Count the selected elements in the query.
:param with_limit_and_skip (optional): take any :meth:`limit` or
:meth:`skip` that has been applied to this cursor into account when
getting the count'

def count(self, with_limit_and_skip=False):

    if (with_limit_and_skip is False):
        return super(QuerySet, self).count(with_limit_and_skip)
    if (self._len is None):
        self._len = super(QuerySet, self).count(with_limit_and_skip)
    return self._len
