public function __construct($head, Stack $tail, $count) { $this->head = $head; $this->tail = $tail; $this->count = $count; }