use .first() method
use objects.count instead of objects.all.count