In SCADAPack-s with TelePACE firmware, 32-bit integers are stored in the form: Lower word at lower address, higher word at higher address. If digital input at address 10001 is used to count pulses and ladder logic shown in the attachment, then 32-bit unsigned integer (double word) at address 40009 can be used as input register for FLOW block.