public static int numNonnull(Object[] data) {int n = 0;if ( data == null ) return n;for (Object o : data) {if ( o!=null ) n++;}return n;}

public static int NumNonnull(object[] data){int n = 0;if (data == null){return n;}foreach (object o in data){if (o != null){n++;}}return n;}
