Some unknown error

while declaring a variable count globally there is some unknown error thrown by the compiler

yes actually in c++14 count is function

so instead of count use any other variable like cnt