Why is there a limit of subtasks you can create in a board?

Great question!

In this case, I would find the subitem board Id (to see how to find this, check out this thread) to query all of the items on the board.

You can then write a simple function that will iterate over the results returned and count all of the subitems returned. This should be a quick way to tell you how many there are.