tests and docs for count parameter