Respect the case_cnt field from sys file header. Closes patch #6092