Count sub-components with the definition "TOTO"

Your code does about the same thing as mine but is longer and harder to read. Also it doesn’t assign found at all, not even as an empty Array, if definition_a has no instances.