#include <bits/stdc++.h>
using namespace std;
long long power(long long x, long long y, long long p) {
  long long res = 1;
  x = x % p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
struct compare {
  bool operator()(const std::string& first, const std::string& second) {
    return first.size() > second.size();
  }
};
int main() {
  iostream::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  string a, b;
  cin >> a >> b;
  long long ans = 0, x = 0;
  for (int i = 0; i < b.length(); ++i) {
    if (a[i] != b[i]) x++;
  }
  if (x % 2 == 0) ans++;
  long long k = b.length();
  for (int i = b.length(); i < a.length(); ++i) {
    if (a[i - k] != a[i]) x++;
    if (x % 2 == 0) ans++;
  }
  cout << ans;
  return 0;
}
