def size(self, destination):
session = meta.Session()<EOL>sel = select([func.count(model.frames_table.c.message_id)]).where(<EOL>model.frames_table.c.destination == destination)<EOL>result = session.execute(sel)<EOL>first = result.fetchone()<EOL>if not first:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>return int(first[<NUM_LIT:0>])<EOL><DEDENT>
Size of the queue for specified destination.

@param destination: The queue destination (e.g. /queue/foo)
@type destination: C{str}

@return: The number of frames in specified queue.
@rtype: C{int}