original_string: public static function count($data = false) {
  
          if ($data && Validate::isArray($data)) {
  
              return count($data);
          } else if ($data && Validate::isObject($data)) {
  
              return count(get_object_vars($data));
          }
  
          return 0;
      }
code: public static function count($data = false) {
  
          if ($data && Validate::isArray($data)) {
  
              return count($data);
          } else if ($data && Validate::isObject($data)) {
  
              return count(get_object_vars($data));
          }
  
          return 0;
      }
code_tokens: public static function count ( $ data = false ) { if ( $ data && Validate :: isArray ( $ data ) ) { return count ( $ data ) ; } else if ( $ data && Validate :: isObject ( $ data ) ) { return count ( get_object_vars ( $ data ) ) ; } return 0 ; }
docstring: Count the numbers of keys in a given array or object.
  @param array || object
  @return int numbers of keys
docstring_tokens: Count the numbers of keys in a given array or object .