#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  string a, b;
  cin >> a >> b;
  long long ps[a.size()];
  long long cnt = 0;
  long long l1 = a.size();
  long long l2 = b.size();
  for (long long i = 0; i < l1; i++) {
    if (a[i] == '1') {
      cnt++;
    }
    ps[i] = cnt;
  }
  cnt = 0;
  for (long long i = 0; i < l2; i++) {
    if (b[i] == '1') {
      cnt++;
    }
  }
  long long k = 0, ans = 0;
  if (cnt % 2 == 1) k = 1;
  for (long long i = 0; i < (l1); i++) {
    long long h = 0;
    if (i != 0)
      h = ps[i + l2 - 1] - ps[i - 1];
    else
      h = ps[i + l2 - 1];
    if (h % 2 == k) ans++;
    if (i + l2 - 1 >= l1 - 1) break;
  }
  cout << ans << endl;
  return 0;
}
