func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, x, y;     cin >> n;     vector<vector<int> > g(n);     for (int i = 0; i < n - 1; i++) {       cin >> x >> y;       x--;       y--;       g[x].push_back(y);       g[y].push_back(x);     }     int res = 0;     for (int i = 0; i < n; i++) {       if (g[i].size() <= 1) res++;     }     cout << res;     return 0;   }   