EntityFieldQuery for getting the count of a user blog
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;