estately/rets — pull request #75 by danwoolley (2014-09-02 18:53:51+00:00)
Title: Return a count of zero if you're missing a count node but have a RETS-STATUS node with code 20201 indicating no records found

Offutt RETS server at http://rets.offutt-innovia.com:8080/wnc/login gives this sometimes when requesting a count:

was causing this error:

NoMethodError: undefined method `attr' for nil:NilClass
/Users/Dan/Dev/rets/lib/rets/parser/compact.rb:52:in `get_count'

http://www.reso.org/assets/RETS/Specifications/rets_1_7_2.pdf section 3.5 indicates the above is probably a valid response:
The rets-status MAY be included in the response if the ReplyCode or ReplyText given in the body-start-line becomes invalid during the creation of the response. If the server includes a rets-status in its reply, the client MUST use the ReplyCode and ReplyText from the rets-status rather than from the body-start-line.

I think that response should return a valid count of zero. See test.