#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  string a, b;
  cin >> a >> b;
  long int countA = 0, countB = 0, ans = 0;
  for (long int i = 0; i < b.size(); i++) {
    countA += a[i] == '1';
    countB += b[i] == '1';
  }
  ans += ((countA - countB) % 2 == 0);
  for (long int i = b.size(); i < a.size(); i++) {
    countA += a[i] == '1';
    countA -= a[i - b.size()] == '1';
    ans += ((countA - countB) % 2 == 0);
  }
  cout << ans;
  return 0;
}
