$varmi = count($wpdb->get_results( 'SELECT * FROM wp_posts WHERE post_title = "'.$title.'" AND post_content = "'.$content.'"', OBJECT ));
yerine
$varmi = count($wpdb->get_results( 'SELECT * FROM wp_posts WHERE post_title = "'.$title.'" OR post_content = "'.$content.'"', OBJECT ));