support expect type "count" with min/max. added tests for x:input.

- you can now use type="count" on the expect element and the attributes min and max to set the expected number of documents.
- tests added that makes sure an empty sequence as well as multiple documents are allowed in x:input
- fixed bugs relating to x:input