import pathlib


def count_files_in_folder(input_dir:str):
    """ Count the number of files and subdirectories in input_dir
    """
    total_files = 0
    for file in pathlib.Path(input_dir).iterdir():
        total_files += 1    
        
    return total_files