#include <bits/stdc++.h>
using namespace std;
void file_io() {
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
}
int main() {
  string a, b;
  cin >> a >> b;
  int b_cnt = 0;
  for (int i = 0; i < b.size(); i++)
    if (b[i] == '1') b_cnt++;
  int a_cnt[a.size() + 1];
  a_cnt[0] = 0;
  for (int i = 1; i <= a.size(); i++) {
    a_cnt[i] = a_cnt[i - 1] + (a[i - 1] == '1' ? 1 : 0);
  }
  int cnt = 0;
  for (int i = 0; i + b.size() < a.size() + 1; i++) {
    int an = a_cnt[i + b.size()] - a_cnt[i];
    if (b_cnt % 2 == 1 && an % 2 == 1) cnt++;
    if (b_cnt % 2 == 0 && an % 2 == 0) cnt++;
  }
  cout << cnt;
}
