add api to get user statistics

refs #4