#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a >> b;
  int cnt1 = 0;
  int cnt2 = count(b.begin(), b.end(), '1');
  int len = b.size();
  int pos = 0;
  while (pos < len) {
    if (a[pos] == '1') cnt1++;
    pos++;
  }
  int ans = 0;
  if ((cnt1 + cnt2) % 2 == 0) ans++;
  while (pos < a.size()) {
    if (a[pos - len] == '1') cnt1--;
    if (a[pos] == '1') cnt1++;
    if ((cnt1 + cnt2) % 2 == 0) ans++;
    pos++;
  }
  cout << ans << endl;
}
