Python. One Liner....
\nclass Solution:\n    def numOfPairs(self, x: List[str], target: str) -> int:\n        return sum(sum(1 if i!=j and x[i]+x[j]==target else 0 for  j in range(le
```\nclass Solution:\n    def numOfPairs(self, x: List[str], target: str) -> int:\n        return sum(sum(1 if i!=j and x[i]+x[j]==target else 0 for  j in range(len(x))) for i in range(len(x)))\n```
[]