#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
const int inf = 1e9 + 1;
const int prime_100000000 = 5761460;
const double eps = 1e-15;
const double EPS = 1e-9;
const double PI = acos(-1.0);
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  string s1, s2;
  cin >> s1;
  cin >> s2;
  int sum = 0, res = 0;
  for (int i = 0; i < s2.size(); ++i) {
    if (s1[i] != s2[i]) {
      sum += 1;
    }
  }
  if (sum % 2 == 0) {
    res += 1;
  }
  for (int i = s2.size(); i < s1.size(); ++i) {
    if (s1[i] != s1[i - s2.size()]) {
      sum += 1;
    }
    if (sum % 2 == 0) {
      res += 1;
    }
  }
  cout << res;
}
