get # of errors in error_messages_for

@user.errors.full_messages

that will return an array of the text messages. So you can do
@user.errors.full_messages.size and then iterate on them to create
your own error message.