How to count number of times a partial string occurs in a coloumn of a table? [Pandas, Python]

I'm trying to count the number of times a specific portion of a cell string occurs in a coloumn of a dataframe.

Here's my pseudo code below. You can reference the table attached.

Pass the string 'V05C'as a lookup value in the dataframe column CELL_ID. This lookup value can change, assume the string is passed as part of a function.

Each time the partial value 'V05C' shows in a row, then look at the right 2 values of that cells string and apply the if statement logic below:

If right 2 values of the string are X4 or X5 or X6 or X7 or X8 or X9 or XD or XE or XF or XK or XL or KM
     then, increase count1 by one

If right 2 values of the string are X1 or X2 or X3 or XA or XB or XC or XG or XH or XJ or XX or XY or KX
     then, increase count2 by one

return count1 and count2

Shortened Example Table Below (space designates a separate column.. hard to show in this format):

CELL_ID count_t0 Acc_AddedERabEstabFails_t0


V05CX4 7 4
V05CX5 7 8
V05CX6 7 10
V05CX7 7 6
V05CX8 7 7
V05CX9 7 6
V05CXA 7 64
V05CXB 7 292
V05CXC 7 63
V05CXD 7 23
V05CXE 7 43
V05CXF 7 56
V05CXG 7 69
V05CXH 7 44
V05CXJ 7 26
V91DX4 7 42
V91DX5 7 7
V91DX6 7 11
V91DX7 7 8
V91DX8 7 3
V91DX9 7 4
V91DXA 7 82
V91DXB 7 34
V91DXC 7 200
V91DXD 7 12
V91DXE 7 17
V91DXF 7 45
V91DXG 7 39
V91DXH 7 19
V91DXJ 7 27
VN91DX4 7 12
VN91DX5 7 16
VN91DX6 7 8
VN91DX7 7 6
VN91DX8 7 5
VN91DX9 7 4
VN91DXA 7 45
VN91DXB 7 65
VN91DXC 7 76
VN91DXD 7 11
VN91DXE 7 27
VN91DXF 7 19
VN91DXG 7 46
VN91DXH 7 49
VN91DXJ 7 37