I can get the counts for column E (there are no empty cells in the range) with
E
=QUERY(Sheet1!D2:H,"select D, count(E) where F = \'person-per