function [num_boards] = pb_count_boards()
% FUNCTION NAME:
%   pb_count_boards
%
% DESCRIPTION:
%   Return the number of SpinCore boards present in your system.
%
% INPUTS:
%
% OUTPUTS:
%   num_boards - The number of boards is returned on success
%                A negative number is returned on failure, and spinerr is set
%                to a description of the error.
%
% $Revision: R2017a$ 
% $Author: SpinCore Technologies, Inc.$
% $Date: November 17, 2023$
% ------------------------------------------------------------------------------

global SPINAPI_DLL_NAME;

num_boards = calllib(SPINAPI_DLL_NAME, 'pb_count_boards');

end