def numel(tensor):
    """
    Returns the total number of elements in the input Tensor.

    Parameters
    ----------

    Returns
    -------
    int:
        total number of elements in the input Tensor
    """
    if tensor.encrypted:
        return tensor.data.size
    else:
        return tensor.data.size