#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 10;
char a[maxn], b[maxn];
int ans, cnt;
int main() {
  cin >> a + 1 >> b + 1;
  int la = strlen(a + 1);
  int lb = strlen(b + 1);
  for (int i = 1; i <= lb; i++) {
    cnt ^= a[i] ^ b[i];
  }
  if (cnt == 0) ans++;
  for (int i = lb + 1; i <= la; i++) {
    cnt ^= a[i] ^ a[i - lb];
    if (cnt == 0) ans++;
  }
  cout << ans;
  return 0;
}
