The ranking systems are different from style to style. Generally a 1st Dan wears a solid black belt, 2nd Dan wears a Black belt with one stripe, 3rd Dan wears a BB with 2 stripes and so on. Count the belt as 1 and then add the number of stripes to get the Dan level. But, as I said, this varies from style to style.