Your array phrasing is wrong, cange
$count_posts = count(get_posts(array('author'=>$current_user->ID,'post_type','newpages')));
To
$count_posts = count(get_posts(array('author'=>$current_user->ID,'post_type' => 'newpages')));
Your array phrasing is wrong, cange
$count_posts = count(get_posts(array('author'=>$current_user->ID,'post_type','newpages')));
To
$count_posts = count(get_posts(array('author'=>$current_user->ID,'post_type' => 'newpages')));