is it possible to count the if statement in laravel code example Example: count with condition laravel $user = User::where('user_id' , 10); $user->count();