Extra Site Information module provides Drush commands and UI level view to see the count of Nodes, Content types, Users, Roles existing in the site.
This module also provides the information about Currently loggedin users in your site.
nodecount" command will return the number of Nodes present in the site, you can use command in following ways.
drush nodecount --help
drush nodecount page
drush nodecount page article