created the api to show content stats in the admin dashboard