Have you tried with the following?
if (Auth::check())
{
$user_id = Auth::user()->user_id;
$items_count = Items::where('user_id', '=', $user_id)->count();
View::share('user_image_count', $items_count);
}
I believe it should work.