public int getNumVisibleParticles() {
//        return unusedIndices.size() + next;
        return lastUsed + 1;
    }
Returns the number of visible particles (spawned but not dead).

@return the number of visible particles
jme3-core/src/main/java/com/jme3/effect/ParticleEmitter.java