def METHOD_NAME(missing, delay):
    """Print ES and DB counts.
    Prints a table representation of database and elasticsearch counts.
    Columns:
    1. database count minus elasticsearch count
    2. document type
    3. database count
    4. elasticsearch index
    5. elasticsearch count
    """
    missing_doc_types = []
    mon = Monitoring(time_delta=delay)
    msg_head = f'DB - ES{"type":>8}{"count":>11}{"index":>27}{"count":>11}\n'
    msg_head += f'{"":-^64s}'
    click.echo(msg_head)
    info = mon.info(with_deleted=False, difference_db_es=False)
    for doc_type in sorted(info):
        db_es = info[doc_type].get('db-es', '')
        msg = f'{db_es:>7}{doc_type:>8}{info[doc_type].get("db", ""):>11}'
        index = info[doc_type].get('index', '')
        if index:
            msg += f'{index:>27}{info[doc_type].get("es", ""):>11}'
        if db_es not in [0, '']:
            click.secho(msg, fg='red')
        else:
            click.echo(msg)
        if missing and index:
            missing_doc_types.append(doc_type)
    for missing_doc_type in missing_doc_types:
        mon.print_missing(missing_doc_type)