The particular operation you'd want here is probably vsearchvec.
In reply to Re^3: Counting PDL vectors in a PDL matrix by etj in thread Counting PDL vectors in a PDL matrix by mxb