users post count

The count_user_posts accepts array as the $post_type arguments. You don’t need to include the $post_type = part.

$user_posts = count_user_posts( $userid, array('post','blog','lettura','intervista') );

The $user_posts variable will hold the number of posts for the $userid.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)