#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string a, b;
  cin >> a >> b;
  long long int evencount = 0;
  long long int onecountb = 0;
  long long int onecounta = 0;
  long long int blen = b.length();
  long long int alen = a.length();
  long long int i;
  for (i = 0; i < blen; i++) {
    if (b[i] == '1') {
      onecountb++;
    }
  }
  for (i = 0; i < blen; i++) {
    if (a[i] == '1') {
      onecounta++;
    }
  }
  if (onecounta % 2 == onecountb % 2) {
    evencount++;
  }
  for (i = blen; i < alen; i++) {
    if (a[i] == '1') {
      onecounta++;
    }
    if (a[i - blen] == '1') {
      onecounta--;
    }
    if (onecounta % 2 == onecountb % 2) {
      evencount++;
    }
  }
  cout << evencount << endl;
}
