def count_features_type(types, include_binary=False):
    """ Counts two or three different types of features
    (binary (optional), categorical, continuous).
    :param types: list of types from get_type
    :returns a tuple (binary (optional), categorical, continuous)
    """
    if include_binary:
        return (
                types.count('binary'),
                types.count('categorical'),
                types.count('continuous')
                )
    else:
        return (
                types.count('categorical'),
                types.count('continuous')
                )