Add count, maximum, etc. options to has_text?

[My previous pull request](https://github.com/jnicklas/capybara/pull/915) wasn't updated so I made a new one.

Some error messages were changed to increase code reuse.

I plan to add `wait` option in another pull request.