#include <bits/stdc++.h>
using namespace std;
const int Max = 1e6 + 100;
int suma[Max];
int main() {
  string a, b;
  cin >> a >> b;
  int sum = 0;
  for (int i = 0; i < a.length(); i++) {
    sum += a[i] - '0';
    suma[i] = sum;
  }
  sum = 0;
  for (int i = 0; i < b.length(); i++) {
    sum += b[i] - '0';
  }
  int lenb = b.length();
  int result = (suma[lenb - 1] + sum) % 2 == 0 ? 1 : 0;
  for (int i = lenb; i < a.length(); i++) {
    int temp = suma[i] - suma[i - lenb];
    temp += sum;
    result += (temp % 2 == 0 ? 1 : 0);
  }
  cout << result << endl;
  return 0;
}
