def count_records(trajectories_frame):
	"""
	Returns total number of records for each user
	:param trajectories_frame: TrajectoriesFrame class object
	:return: A pandas Series with a count of records for each user
	"""
	counts = trajectories_frame.groupby(level=0).agg('count').iloc[:, 0]
	return counts