#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  long int count = 0, even = 0;
  cin >> a >> b;
  long int la = a.size(), lb = b.size();
  for (long int j = 0; j < lb; j++) {
    if (a[j] != b[j]) count++;
  }
  if (count % 2 == 0) even++;
  for (long int j = lb; j < la; j++) {
    if (a[j] != a[j - lb]) count++;
    if (count % 2 == 0) even++;
  }
  cout << even;
}
