function result = countNegativeNumbers(vec)
%countNegativeNumbers counts how many even numbers are in a vector
%
%consumes: vec, vector of numbers
%produces: result, a scalar number
%
%Examples:
%   >> countNegativeNumbers([1 -3 0 -5 6])
%   ans = 2
%   >> countNegativeNumbers(-3:1:3)
%   ans = 3
%   >> countNegativeNumbers([1 3 5])
%   ans = 0

  count = 0;

  for k=1:length(vec)    

     if ( vec(k) < 0          )          % <== fill in something here
         count = count + 1;          
     end % end of if
  
  end % end of for

  result = count;                        % <== fill in something here on
                                         %     right hand side

end