original_string: protected function count($builder)
      {
          $read = NotificationsStackRead::select(['stack_id'])->withTrashed()->where('user_id', user()->id)->pluck('stack_id');
          return $builder->whereNotIn('id', $read)->count();
      }
code: protected function count($builder)
      {
          $read = NotificationsStackRead::select(['stack_id'])->withTrashed()->where('user_id', user()->id)->pluck('stack_id');
          return $builder->whereNotIn('id', $read)->count();
      }
code_tokens: protected function count ( $ builder ) { $ read = NotificationsStackRead :: select ( [ 'stack_id' ] ) -> withTrashed ( ) -> where ( 'user_id' , user ( ) -> id ) -> pluck ( 'stack_id' ) ; return $ builder -> whereNotIn ( 'id' , $ read ) -> count ( ) ; }
docstring: Assign counter query
  
  @param \Illuminate\Database\Query\Builder $builder
  @return \Illuminate\Database\Eloquent\Model
docstring_tokens: Assign counter query