created empty count function