limit header checking by expected header count