Fixed counting for opt-outs, made it possible to give date_from and date_to arguments when looking up or counting.

Asana:
https://app.asana.com/0/7005399303210/13357659398996