struct MyClass {
template<typename... Tail>
static int count() {
return 0;
}
template<char Head, char... Tail>
static int count() {
return 1 + count<Tail...>();
}
};
#include <iostream>
int main() {
std::cout << MyClass::count<'f','o','o'>();
}
c3RydWN0IE15Q2xhc3MgewogICAgdGVtcGxhdGU8dHlwZW5hbWUuLi4gVGFpbD4KICAgIHN0YXRpYyBpbnQgY291bnQoKSB7CiAgICAgICAgcmV0dXJuIDA7CiAgICB9CgogICAgdGVtcGxhdGU8Y2hhciBIZWFkLCBjaGFyLi4uIFRhaWw+CiAgICBzdGF0aWMgaW50IGNvdW50KCkgewogICAgICAgIHJldHVybiAxICsgY291bnQ8VGFpbC4uLj4oKTsKICAgIH0KfTsKCiNpbmNsdWRlIDxpb3N0cmVhbT4KCmludCBtYWluKCkgewogICAgc3RkOjpjb3V0IDw8IE15Q2xhc3M6OmNvdW50PCdmJywnbycsJ28nPigpOwp9