Calculate the number of rules in the field by comparing the length of the original string to it's length with all the dots removed, and adding one.

example ...
Code:
Select length(rules)-length(replace(rules,'.'))+1
from whatever
/