Return substring instance count