return function(g)local q=0 for g in pairs(g)do q=q+1 end return q end
--[[
	Takes a table and returns the field count
]]
return function(t)
	local fieldCount = 0
	for _ in pairs(t) do
		fieldCount = fieldCount + 1
	end
	return fieldCount
end
