I wonder if someone could help me know what a code would look like to know the cardinality of a matrix in c ++.