314 generate hostname

When ``counter`` has been not assigned, this line raise ``TypeError: unsupported operand type(s) for +: 'int' and 'str'``