#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b;
  cin >> a >> b;
  int ans = 0, diff = 0;
  for (int i = 0; i < b.size(); i++)
    if (a[i] != b[i]) diff++;
  if (diff % 2 == 0) ans++;
  for (int i = b.size(); i < a.size(); i++) {
    diff = diff + (a[i] != a[i - b.size()]);
    if (diff % 2 == 0) ans++;
  }
  printf("%d", ans);
}
