#include <bits/stdc++.h>
using namespace std;
int sum[1000005];
int main(int argc, const char* argv[]) {
  while (true) {
    string a, b, c;
    cin >> a >> b;
    sum[0] = 0;
    for (int i = 1; i < a.size(); i++) {
      c += abs(a[i] - a[i - 1]) + '0';
      sum[i] = sum[i - 1] + abs(a[i] - a[i - 1]);
    }
    int cnt = 0;
    int ans = 0;
    for (int i = 0; i < b.size(); i++) {
      if (a[i] != b[i]) {
        cnt++;
      }
    }
    int flag = 1;
    if (cnt % 2 == 0) {
      ans++;
      flag = 1;
    } else {
      flag = -1;
    }
    for (int i = b.size(); i < a.size(); i++) {
      cnt = sum[i] - sum[i - b.size()];
      if (cnt % 2 == 0) {
        if (flag == 1) {
          ans++;
        }
      } else {
        if (flag == -1) {
          ans++;
        }
        flag = -flag;
      }
    }
    cout << ans << endl;
    if (!false) {
      break;
    }
  }
  return 0;
}
