You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ipctb_ica_get_countTimePoints.m
    path of file: ./repos/bspm/thirdparty/MIALAB/gipc1d/ipctb_ica
    
    the code of the file until where you have to start completion: function [diffTimePoints, extns, dims] = ipctb_ica_get_countTimePoints(files)
% Returns the number of time points in files
% 
% Input:
% files - array of structures or character array in columns (output of
% str2mat function)
% 
% Output:

    
function [diffTimePoints, extns, dims] = ipctb_ica_get_countTimePoints(files)
% Returns the number of time points in files
% 
% Input:
% files - array of structures or character array in columns (output of
% str2mat function)
% 
% Output:
% 

dims = [];
if ~isstruct(files)
    % check if the files are in character format
    if ischar(files)        
        temp = files;
        clear files;
        files.name = temp;
        clear temp;
    else
        error('Files should be in structure or character format');
    end