diff --git a/app/Livewire/Table/UserTable.php b/app/Livewire/Table/UserTable.php
index 23dcdfa62..dfaa0a371 100644
--- a/app/Livewire/Table/UserTable.php
+++ b/app/Livewire/Table/UserTable.php
@@ -45,9 +45,10 @@ public function fields(): PowerGridFields
{
return PowerGrid::fields()
->add('name', function (User $user) {
- $urlCountTitle = $user->urls()->count().' '.Str::plural('url', $user->urls()->count()).' created';
+ $urlsCount = $user->urls()->count();
+ $urlCountTitle = $urlsCount.' '.Str::plural('url', $urlsCount).' created';
- return $user->name.' ('.numberAbbreviate($user->urls()->count()).')';
+ return $user->name.' ('.numberAbbreviate($urlsCount).')';
})
->add('email')
->add('created_at_formatted', function (User $user) {