C++ Code Solution ::
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll ;
/* Function to check if x is power of 2*/
bool kk(long long int n)
{
if (n == 0)
return 0;
if ((n & (~(n - 1))) == n)
return 1;
return 0;
}
int main() {
ll n ;
cin>>n ;ll gg = 0 ;
ll i = 1 ;
while(i<=n){
ll yy;
cin>>yy;
if(yy==0){
} else if(kk(yy)==true) {
} else {
gg++;
}
i++;
}
cout<<gg ;
return 0 ;
}