Update DataManager.h

Added count function
Update DataManager.m

Added count function
Merge pull request #1 from jansenzjh/master

Added count function