from typing import Counter


def find_fuel_for_alignment(position_counts: Counter, align_position: int) -> int:
    """Find the fuel required to align at the given horizontal position."""

    fuel_cost = 0

    for position, count in position_counts.items():

        distance_moved = abs(align_position - position)

        distance_moved_cost = (distance_moved * (distance_moved + 1)) / 2

        fuel_cost += distance_moved_cost * count

    return int(fuel_cost)