Extacting python List : I have a pandas data frame which has strings in it like this 

ID value
1  2
2  25,35
3  1,25,3,40
I would like to count the number of times each value occurs.
The values are strings not integers or floats

Any help is greatly appreciated.
thank you,
 