Fix EmmitCount method

Add cross thread safety