#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 6;
int n, m, ans;
char s[N], t[N];
int sum[N], sumt;
int main() {
  scanf("%s%s", s + 1, t + 1);
  n = (int)strlen(s + 1);
  m = (int)strlen(t + 1);
  for (int i = 1; i <= n; i++) {
    sum[i] = sum[i - 1] ^ (s[i] - '0');
  }
  for (int i = 1; i <= m; i++) {
    sumt ^= (t[i] - '0');
  }
  for (int i = m; i <= n; i++) {
    if (sum[i] ^ sum[i - m] ^ sumt) {
      continue;
    }
    ++ans;
  }
  printf("%d\n", ans);
  return 0;
}
