input: Write a python function to find the number of elements in a stack.
  assert findNumOfElements([1, 2, 3, 4, 5]) == 5
  assert findNumOfElements([]) == 0
  assert findNumOfElements(['a', 'b', 'c']) == 3
output: def findNumOfElements(stack):
      return len(stack)