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
- Navigate to Extra Site Information page
/admin/reports/extra-siteinfofor the user interface representation of data. - 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
Project information
- Project categories: Developer tools, Integrations
1 site reports using this module
- Created by heykarthikwithu on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Development version: 2.0.x-dev updated 27 Sep 2023 at 10:35 UTC


