EntityFieldQuery for getting the count of a user blog EntityFieldQuery for getting the count of a user blog. Blog is a content type.
Try this

global $user;

$query = new EntityFieldQuery;

$count = $query-&gt;entityCondition('entity_type', 'node')
 -&gt;entityCondition('bundle', 'blog')
 -&gt;propertyCondition('status', 1) // Getting published nodes only.
 -&gt;propertyCondition('uid', $uid)
 -&gt;count()
 -&gt;execute();

print $count . ' blogs from ' . $user-&gt;name;