Add PathLikeSelector method for counting number of ports in a selector.