Using table.maxn will tell you how many fields in table.
Example shows a 6 * 11 table array run the below sample will print out the result. In this case 66
Hope this helps
-- Maxn
-- Use this function to perform your initial setup
function setup()
print("Hello World!")
bulkmod={
"0","0","0","0","0","0",
"0","0","0","-4","-4","0",
"0","0","0","-2","-1","0",
"0","0","0","-1","0","0",
"0","0","0","0","1","0",
"-4","0","-4","1","2","0",
"-3","-4","-3","2","3","-3",
"-2","-3","-2","3","4","-3",
"-1","-2","-1","4","5","-2",
"0","-1","0","5","6","-2",
"3","0","1","6","7","0"}
end
-- This function gets called once every frame
function draw()
-- This sets a dark background color
background(40, 40, 50)
-- This sets the line thickness
strokeWidth(5)
print (table.maxn(bulkmod))
-- Do your drawing here
end