Here's how to quickly use Views UI to count content in your Drupal database. You can then display the counts as Blocks or even pages or just use them internally as site admin. The only prerequisite is to have Views and VIews UI enabled.
- Create a new view of content (aka nodes). Leave out sorting! (Sorting/ordering won't be visible in the count anyways but can prevent counting from working.)
- Under
Advanced
settings, enableUse aggregation
to Yes. - Under
FIELDS
, only use one main field, such as a title or nid. There should beAggregation settings
next to it. Set this toCOUNT
. - That's it. You can add
FILTER CRITERIA
to reduce the counted content. Don't addSORT CRITERIA
. Paging/more is also not applicable here.