During your render call in the controller, you can pass in the meta attribute.
render @users, :each_serializer => UserSerializer, :meta => { :total => @users.count }
This will produce the following JSON:
{
"users" : [...],
"meta" : {
"total" : 12
}
}
You can rename the meta key name by passing in the meta_key
option.