Based on the data, the count should be 2, because there are only 2 unique orders which satisfies the condition of order date < User input (10.10.2013), and also with invoice data as blank.
But it is considering the blank values or order date as well as #<10.10.2013 and giving count in the first scenario. Client didn't specify this condition where in order date is blank.