commit prob. counte r algorithm