text: // add whatever parameters you deem necessary
  function countPairs(array,target) {
      let count=0;
      let seen = seenFunc(array)
      console.log("seen:",seen)
      console.log("target:",target)
      for(num in seen){
          let subbedNum = target-num;
          console.log("subbedNum:",subbedNum)
          if(seen[subbedNum] && subbedNum != num){
              seen[num]--;
              seen[subbedNum]--;
              count++;
          }
      }
      console.log("count:",count)
      return count;
  }
  
  function seenFunc(array){
      let seen = {} 
      for(num of array){
          if(!seen[num]){
              seen[num] = 1;
          }
      }
      return seen;
  }