added substring count (sub count)