count with condition laravel

PHP
$user = User::where('user_id' , 10);
$user->count();
Source

Also in PHP: