#include <bits/stdc++.h>
using namespace std;
const int maxh = 100000001;
char a[maxh], b[maxh];
int main() {
  int m, n;
  scanf("%s", a + 1);
  scanf("%s", b + 1);
  n = strlen(a + 1);
  m = strlen(b + 1);
  int mile[] = {0, 0};
  int t = 0;
  for (int i = 1; i <= m; i++) {
    t ^= (a[i] - '0');
    t ^= (b[i] - '0');
  }
  for (int i = m; i <= n; i++) {
    mile[t]++;
    t ^= (a[i + 1] - '0') ^ (a[i + 1 - m] - '0');
  }
  cout << mile[0] << endl;
  return 0;
}
