static function countForComputer(Computer $comp) { return countElementsInTable('glpi_computers_items', ['computers_id' => $comp->getField('id'), 'is_deleted' => 0]); }