would it be easier to just count the number of elements in each row and multiply them together ie 8 * 2 * 5 in this case and then declare the array