A high-resolution scintillation counter with particle identification for use with pions