<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def showBeamlines(self):
 """ show all defined beamlines """

        cnt = 0
        blidlist = []
        for k in self.all_elements:
            try:
                if 'beamline' in self.all_elements.get(k):
                    cnt += 1
                    blidlist.append(k)
            except:
                pass
        retstr = '{total:<3d}beamlines: {allbl}'.format(total=cnt,
                                                        allbl=';'.join(blidlist))
        return retstr