+ return \count($this->getAttributeBag()->all());
+ }
+
+ /**
+ * @return int
+ *
+ * @internal
+ */
+ public function getUsageIndex()
+ {
+ return $this->usageIndex;
+ }
+
+ /**
+ * @return bool
+ *
+ * @internal
+ */
+ public function isEmpty()
+ {
+ if ($this->isStarted()) {
+ ++$this->usageIndex;
+ }
+ foreach ($this->data as &$data) {
+ if (!empty($data)) {
+ return false;
+ }
+ }
+
+ return true;