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: nexAddNeuron.m
    path of file: ./repos/opticka/omniplex/nex
    
    the code of the file until where you have to start completion: function [ nexFile ] = nexAddNeuron( nexFile, timestamps, name )
% [nexFile] = nexAddNeuron( nexFile, timestamps, name ) -- adds a neuron 
%             to nexFile data structure
%
% INPUT:
%   nexFile - nex file data structure created in nexCreateFileData

    
function [ nexFile ] = nexAddNeuron( nexFile, timestamps, name )
% [nexFile] = nexAddNeuron( nexFile, timestamps, name ) -- adds a neuron 
%             to nexFile data structure
%
% INPUT:
%   nexFile - nex file data structure created in nexCreateFileData
%   timestamps - vector of neuron timestamps in seconds
%   name - neuron name
%
    neuronCount = 0;
    if(isfield(nexFile, 'neurons'))
        neuronCount = size(nexFile.neurons, 1);
    end