Added parameter to Boundary.bind to configure a CountDownLatch with a given expected count.