Incorrect reference count in form management
The reference count in the form management counts sys_refindex records that are marked as deleted. In TYPO3\CMS\Form\Service\DatabaseService::getAllReferences there is no check for deleted = 0.
You can reproduce this bug with the following steps:
- Create a form
- Add a form content element and link the created form to it
- Check the form management module to see 1 reference
- Delete the form content element
- Check the form management module to still see 1 reference