Fixed a minor bug with counting processed structures.