#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("fast-math")
#pragma GCC target("sse,sse2,sse3,ssse3,popcnt,abm,mmx,tune=native")
mt19937 rng(time(NULL));
const int inf = 1e9 + 100;
const long long linf = 2e18;
const long long maxn = 1e6 + 100;
const int mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string a, b;
  cin >> a >> b;
  int ans = 0, c1 = 0, c2 = 0;
  for (int i = 0; i < b.size(); ++i) {
    if (a[i] == '1') c1++;
    if (b[i] == '1') c2++;
  }
  if (c1 % 2 == c2 % 2) ans++;
  for (int i = b.size(); i < a.size(); ++i) {
    if (a[i] == '1') c1++;
    if (a[i - b.size()] == '1') c1--;
    if (c1 % 2 == c2 % 2) ans++;
  }
  cout << ans;
  return 0;
}
