layout structure to make api calls to database. create api call to get counts of articles.