fixed import of Counter (2.6 compatibility), closes #737