updated the API, which includes countPercolate and mpercolate methods.