Numpy Count Number Of Elements In Array Matlab Simulink