if count laravel code example
Example 1: count with condition laravel
$user = User::where('user_id' , 10);
$user->count();
Example 2: check count in laravel
$wordlist = Wordlist::where('id', '<=', $correctedComparisons)->get();
$wordCount = $wordlist->count();