fixes a nasty bug where the atLeast and atMost counts were
being switched when constructing a method