This function counts the number of users that has not earned a given badge.
(int) The number of users that has not earned the badge.
The badge post object ID.
Example 1: Count the number of users that have not earned the badge 2 yet.
$badge_id = 2; $count = mycred_count_users_without_badge( $badge_id ); printf( '%d users has not yet earned this badge', $count );