tracking: get count from dates prior to this date
tracking: add date to WHERE clause