original_string: public static function numElements($check, $operator, $expectedCount)
      {
          if (!is_array($check) && !$check instanceof \Countable) {
              return false;
          }
  
          return self::comparison(count($check), $operator, $expectedCount);
      }
code: public static function numElements($check, $operator, $expectedCount)
      {
          if (!is_array($check) && !$check instanceof \Countable) {
              return false;
          }
  
          return self::comparison(count($check), $operator, $expectedCount);
      }
code_tokens: public static function numElements ( $ check , $ operator , $ expectedCount ) { if ( ! is_array ( $ check ) && ! $ check instanceof \ Countable ) { return false ; } return self :: comparison ( count ( $ check ) , $ operator , $ expectedCount ) ; }
docstring: Used to check the count of a given value of type array or Countable.
  
  @param array|\Countable $check The value to check the count on.
  @param string $operator Can be either a word or operand
  is greater >, is less <, greater or equal >=
  less or equal <=, is less <, equal to ==, not equal !=
  @param int $expectedCount The expected count value.
  @return bool Success
docstring_tokens: Used to check the count of a given value of type array or Countable .