<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def info(endpoint):
 """Show metric info from a Prometheus endpoint. \b Example: $ ddev meta prom info :8080/_status/vars """

    endpoint = sanitize_endpoint(endpoint)

    metrics = parse_metrics(endpoint)
    num_metrics = len(metrics)
    num_gauge = 0
    num_counter = 0
    num_histogram = 0

    for data in itervalues(metrics):
        metric_type = data.get('type')

        if metric_type == 'gauge':
            num_gauge += 1
        elif metric_type == 'counter':
            num_counter += 1
        elif metric_type == 'histogram':
            num_histogram += 1

    if num_metrics:
        echo_success('Number of metrics: {}'.format(num_metrics))
    else:
        echo_warning('No metrics!')
        return

    if num_gauge:
        echo_info('Type `gauge`: {}'.format(num_gauge))

    if num_counter:
        echo_info('Type `counter`: {}'.format(num_counter))

    if num_histogram:
        echo_info('Type `histogram`: {}'.format(num_histogram))