Array of actrors

You can use EVENTS… Spawn a block … call a block to increment count. Destroy a block call an event to deduct from count.

The events can be in the Level Blueprint, Game mode etc.