Which command is used for counting the number of rows in a database?
rowcount
Reason — The rowcount is a read-only attribute that returns the number of rows affected by an execute() method and retrieved from the cursor.
execute()