This module provides drush commands and user interface to see the count of nodes, content types, users & roles existing in the site, also information of currently logged-in users.

Usage

Drupal 7

Drush commands

nodetypecount command will return the number of Content Types present in the site, you can use command in following ways.
drush nodetypecount --help
drush nodetypecount

nodecount command will return the number of Nodes present in the site, you can use command in following ways.
drush nodecount --help
drush nodecount
drush nodecount < content-type-names >
drush nodecount page article

rolecount command will return the number of Roles present in the site, you can use command in following ways.
drush rolecount --help
drush rolecount

usercount command will return the number of Users existing in the site, you can use command in following ways.
drush usercount --help
drush usercount
drush usercount < role-ids >
drush usercount 3 4

User Interface

  1. Navigate to Extra Site Information page /admin/reports/extra-siteinfo for the user interface representation of data.
  2. To see the data of currently logged-in users in the site, navigate to /admin/reports/extra-siteinfo/currently-loggedin-users, also you can end the session of any user by clicking "End Session" button.

Drupal 8 onwards

Changes

1. Removed the currently logged-in users feature from the module and this feature is moved to a module.
2. For viewing the usercount, you need to pass the role machine names
drush usercount administrator,authenticated

Supporting organizations: 
Development & Maintenance

Project information

Releases