#include <bits/stdc++.h>
using namespace std;
void solve() {
  string a, b;
  cin >> a >> b;
  long long int c = 0, ans = 0;
  long long int d[a.size()];
  d[0] = 0;
  for (long long int i = 0; i < b.size(); i++) {
    if (a[i] != b[i]) c++;
  }
  if (c % 2 == 0) ans++;
  char ch = b[b.size() - 1];
  for (long long int i = 0; i < a.size() - 1; i++) {
    if (a[i + 1] != a[i])
      d[i + 1] = d[i] + 1;
    else
      d[i + 1] = d[i];
  }
  for (long long int i = b.size(); i < a.size(); i++) {
    c = c + d[i] - d[i - b.size()];
    if (c % 2 == 0) ans++;
  }
  cout << ans << endl;
  return;
}
int main() {
  long long int q = 1;
  while (q--) {
    solve();
  }
}
