counter is used to get total number of non-infinit values in a matrix.
Usage
counter(M)
Arguments
M
is a matrix.
Value
Returns total number of non-infinit values.
Details
The input of this function is a matrix. This function returns the total number of non-infinite values
in the given matrix. In order to work properly, M must be a matrix otherwise this method
generates an error.