coding style cleanup again ! add counter when pair is got