emit returns the number of called slots