Fixes messages count calculation and runs only one rake task with count to create a server