I'm using a nested array like this:
const data = [
  [0],
  [2],
  [[1], 3]
  1
]
Is it possible to count all values together. In this example the result should be 7 (0+2+1+3+1). And is it also possible to count how many arrays are used? This would be 5 arrays