Arity on #count with rails 4.1.0

rails/rails@4ce643dbb5bd37e1f4662b37abc80a18078feba1 removed the `options` argument from its ActiveRecord `count` methods. This patch checks the arity of that methods before calling it.