Returns 2; a Pair always has two values
Pair
public function count(): int;
int
This shows that a Pair always has a count of 2:
2
$p = Pair {'foo', -1.5}; var_dump($p->count()); $p = Pair {null, null}; var_dump($p->count());
int(2) int(2)