Change count(...) to static counter