If your text really is plain text, this formula should work
LEN({fieldname}) - LEN( SUBSTITUTE({fieldname}, ",", "") )
On the other hand, if your text is a lookup field, or a rollup field, this might not work, and there may also be better ways of getting the count.