#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  string a;
  cin >> a;
  long long int n = a.size();
  vector<long long int> cou(n);
  cou[0] = a[0] - '0';
  for (long long int i = 1; i < n; i++) {
    cou[i] = cou[i - 1] + (a[i] - '0');
  }
  string b;
  cin >> b;
  long long int haa = 0;
  for (long long int i = 0; i < b.size(); i++) {
    haa += (b[i] - '0');
  }
  long long int sz = b.size();
  long long int ans = 0;
  if ((abs(cou[sz - 1] - haa)) % 2 == 0) ans++;
  for (long long int i = sz; i < n; i++) {
    if ((abs(cou[i] - cou[i - sz] - haa)) % 2 == 0) ans++;
  }
  cout << ans << '\n';
  return 0;
}
