Maximum inventory space per square is a quantity of 40.

In other words, if you count all of the squares in your inventory, there are forty of them.