#include <bits/stdc++.h>
using namespace std;
set<string> st;
int n, k;
int sol = 0;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(0);
  cout.precision(10);
  cout << fixed;
  string a, b;
  cin >> a >> b;
  int cntb = 0, cnta = 0;
  for (int i = 0; i < (int)(((int)b.size())); ++i) {
    if (b[i] == '1') cntb++;
    if (a[i] == '1') cnta++;
  }
  cerr << "String a " << a << " Stringb " << b << endl;
  cerr << "countb " << cntb << " Count a " << cnta << endl;
  int ans = 0;
  if (cntb % 2 == cnta % 2) ans++;
  for (int i = (int)(1); i <= (int)(((int)a.size()) - ((int)b.size())); ++i) {
    cnta += ((a[((int)b.size()) + i - 1] - '0') - (a[i - 1] == '1'));
    if (cntb % 2 == cnta % 2) ans++;
  }
  cout << ans << endl;
  cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
  return 0;
}
