As simple search for “bycount” in the forum turns up this post:
which seems to deal with your problem, too.