#include int numSub(std::string s) { int count = 0; long ans = 0; int mod = 1e9+7; int n = s.length(); for(int i = 0;i