ae_epoll_mixed: use counter instead of bitmask