#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    string s;
    int cnt = 0;
    while (cin >> s)
    {
        int n = s.size() / 2;
        int m;
        s.size() % 2 == 0 ? m = n : m = n + 1;
        string t_fir = s.substr(0, n);
        string t_sec = s.substr(m);
        reverse(ALL(t_sec));
        
        if (t_fir == t_sec)
            cnt++;
    }
    OP(cnt);
    return 0;
}
