def _countNumberOfAparitions(array, number):
    """Number of aparitions of a number in an array

    Parameters
    ----------
    array : array of numbers
        
    number : number to search for

    Returns
    -------
    aparaitions : int
        Number of aparitions of the number in the given array
    """
    aparitions = 0
    for i in range(0, len(array)):
        if array[i] == number:
            aparitions += 1
    return aparitions
