If you read the usernames into an array from the YML file you can use count() on the array of usernames.