public function __construct() { $Type = $this->GetType(); if (!isset(self::$Instances[$Type])) { self::$Instances[$Type] = 0; } self::$Instances[$Type]++; }