In an author.php template, i count the author post in a custom post type with $wpdb->get_var,
$post_author = $curauth->ID; //author id
$count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = $post_author AND post_type IN ('ideas') and post_status = 'publish'" );
is it possible to count the author, total votes saved in post meta with key 'votes'?
the value for every post is a number updated each time a user votes a post
thanks!