Help required in Database Counter Display

There is some code needed to get created to make this work. Especially your second issue is advanced. The first one you can get from going to the API docs and look for Data and under that Query and the totalCount parameter.