Linha  = 'PNL2,1,5059448,2450,405,2,0,5060747,5060747,5060747,5060747,1,0,0,5060747,5060747,5060747,5060747,GILMAR MARINS SOARES 892423516,Ambiente 1,,,,,5060747-FITA FUME CETIN 22X045 20M R REHAU LACCA ,1913238490,5060747-FITA FUME CETIN 22X045 20M R REHAU LACCA ,5060747-FITA FUME CETIN 22X045 20M R REHAU LACCA ,5060747-FITA FUME CETIN 22X045 20M R REHAU LACCA ,MDF FUME CETIN 2F 2750X1850X15MM EUCATEX LACCA CE,GILMAR_MDFFUMECETIM15MM_1711,5059448,null,,,,,,1'
contador = 0
for cont in Linha:
    if cont == ',':
        contador += 1
print(contador)