func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {       ios::sync_with_stdio(false);       cin.tie(nullptr);       int t;       cin >> t;       while (t--) {           int n, k;           cin >> n >> k;           string s;           cin >> s;           vector<int> pos;           vector<int> v;           for (int i = 0; i < n; i++) {               if (s[i] ==  * ) {                   pos.push_back(i);               }           }           if (pos.size()) {               v.push_back(pos[0]);           }           while (v.size() and v.back() + k < n) {               int i = upper_bound(pos.begin(), pos.end(), v.back() + k) - pos.begin();               if (pos[i - 1] == v.back()) {                   break;               }               v.push_back(pos[i - 1]);           }           if (pos.back() != v.back()) {               v.push_back(pos.back());           }           cout << v.size() <<   n ;       }       return 0;   }