PDOStatement::rowCount

Returns the number of rows affected by the last SQL statement

PDOStatement::rowCount returns the number of rows affected by the last DELETE, INSERT, or UPDATE statement executed by the corresponding PDOStatement object.