#include <bits/stdc++.h>
using namespace std;
char a[2000005], b[2000005];
int main() {
  scanf("%s %s", a, b);
  int l1 = strlen(a), l2 = strlen(b);
  int ans = 0, sum = 0;
  for (int i = 0; i < l2; i++) {
    ans = ans ^ a[i] ^ b[i];
  }
  if (ans % 2 == 0) sum++;
  for (int i = l2; i < l1; i++) {
    ans = ans ^ a[i - l2] ^ a[i];
    if (ans % 2 == 0) sum++;
  }
  printf("%d\n", sum);
  return 0;
}
