This code creates and starts a thread:
new Thread() { @Override public void run() { try { player.play(); } catch ( Exception e ) { Sy
you could create a static data member for the class(where threading takes place) which is incremented each time an object of that class is called,read that and u get the number of threads started