--- title: "Row Count Transformation | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: sql ms.prod_service: "integration-services" ms.reviewer: "" ms.technology: integration-services ms.topic: conceptual f1_keywords: - "sql13.dts.designer.rowcounttrans.f1" helpviewer_keywords: - "updating variables" - "Row Count transformation" - "number of rows" - "variables [Integration Services], updating" - "counting rows" ms.assetid: b68293b9-a68c-40be-9d81-77342da1be29 author: chugugrace ms.author: chugu --- # Row Count Transformation [!INCLUDE[ssis-appliesto](../../../includes/ssis-appliesto-ssvrpluslinux-asdb-asdw-xxx.md)] The Row Count transformation counts rows as they pass through a data flow and stores the final count in a variable. A [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] [!INCLUDE[ssISnoversion](../../../includes/ssisnoversion-md.md)] package can use row counts to update the variables used in scripts, expressions, and property expressions. (For example, the variable that stores the row count can update the message text in an e-mail message to include the number of rows.) The variable that the Row Count transformation uses must already exist, and it must be in the scope of the Data Flow task to which the data flow with the Row Count transformation belongs. The transformation stores the row count value in the variable only after the last row has passed through the transformation. Therefore, the value of the variable is not updated in time to use the updated value in the data flow that contains the Row Count transformation. You can use the updated variable in a separate data flow. This transformation has one input and one output. It does not support an error output. ## Configuration of the Row Count Transformation You can set properties through [!INCLUDE[ssIS](../../../includes/ssis-md.md)] Designer or programmatically. The **Advanced Editor** dialog box reflects the properties that can be set programmatically. For more information about the properties that you can set in the **Advanced Editor** dialog box or programmatically, click one of the following topics: - [Common Properties](https://msdn.microsoft.com/library/51973502-5cc6-4125-9fce-e60fa1b7b796) - [Transformation Custom Properties](../../../integration-services/data-flow/transformations/transformation-custom-properties.md) ## Related Tasks For information about how to set the properties of this component, see [Set the Properties of a Data Flow Component](../../../integration-services/data-flow/set-the-properties-of-a-data-flow-component.md). ## See Also [Integration Services (SSIS) Variables](../../../integration-services/integration-services-ssis-variables.md) [Data Flow](../../../integration-services/data-flow/data-flow.md) [Integration Services Transformations](../../../integration-services/data-flow/transformations/integration-services-transformations.md)