Count missing separately for basic consistency check (which would have caught the previous bug)