#include <bits/stdc++.h>
using namespace std;
void bye() { exit(0); }
signed main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  long long int t, pro = 1, temp, k, n, m, i, j, l, r, mid, x, y, z, rem, ind,
                   ans = 0, mx = LONG_LONG_MIN, mn = LONG_LONG_MAX, cnt = 0,
                   curr = 0, prev, sum = 0, flag = 0, i1 = -1, i2 = -1;
  string a, b;
  cin >> a >> b;
  n = a.length();
  m = b.length();
  int pref[n + 1];
  pref[0] = 0;
  for (i = 1; i <= n; i++) {
    pref[i] = pref[i - 1] + (a[i - 1] - '0');
  }
  x = 0;
  for (i = 0; i <= m - 1; i++) {
    x ^= (b[i] - '0');
  }
  for (i = m; i <= n; i++) {
    if ((pref[i] - pref[i - m]) % 2 == x) {
      ans++;
    }
  }
  cout << ans;
  return 0;
}
