Could rewrite as `self._sub_core_size = sum(self._indices < self._core_size)` (similar for the others).