count would work too, I was just using the Java array-specific function