Update DataManager.m

Added count function