def get_boundary_cell_count(plate_dims, exclude_outer=1):
    """Get number of wells in outer or inner edges

    Parameters
    ----------
    plate_dims : array
         dimensions of plate

    Returns
    -------
    boundary_cell_count : int
           number of wells in the edges
    """
    boundary_cell_count = 2 * (plate_dims[0] + plate_dims[1] - 2)
    if exclude_outer == 2:
        boundary_cell_count += 2 * (plate_dims[0]-2 + plate_dims[1]-2 - 2)
    return boundary_cell_count