php - หาจำนวนแถวทั้งหมดในตาราง (PDO) - fetchColumn()

$number_rows = $conn->query('select count(p_id) from profile')->fetchColumn();