There are many ways to approach it. And arrays help but are not technically necessary here.
Consider the following:
- at Begin Play we count the blocks and store the amount
- when the player runs into a block, it gets destroyed and we count down
- when the Block Count is low enough, the game is over