added option for eventlistenerCount(max)