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