Derived from Spanish names namely p = thumb (pulgar), i = index finger (Ãndice), m = middle finger (medio), a = ring finger (anular), and when used, often c = little finger or pinky (chiquito)
I’ve also seen the following numeration
T – thumb
1 – index finger
2 – middle finger
3 – ring finger
4 – pinky finger