#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a >> b;
  int curr = 0, target = 0;
  for (int i = 0; i < b.size(); i++) {
    curr += (a[i] - '0');
    target += (b[i] - '0');
  }
  int ans = 0;
  for (int i = b.size(); i < a.size(); i++) {
    if ((curr - target) % 2 == 0) ans++;
    curr -= a[i - b.size()] - '0';
    curr += a[i] - '0';
  }
  if ((curr - target) % 2 == 0) ans++;
  cout << ans << '\n';
}
