---
title: "Boundary Type: Line Count method"
canonical: "https://docs.infoblox.com/space/netmri760/357140813/Boundary%20Type%3A%20Line%20Count%20method"
format: markdown
---
This boundary method simply specifies the number of lines that must be in the block. The result is a configuration block ending by finding the correct number of lines, and not from the start of the next block or an EOF. A line_count variable contains the value for the number of lines in the resulting block. Though the line count method may not be commonly used to break a config file into blocks, one possible use is to iterate through individual lines matching an expression, setting the appropriate `block-start` and using a `line-count` of 1. A sample section from a configuration file:

`interface fc2/1`

`interface fc2/4`

`interface fc2/5`

`interface fc2/6`  
` logging server 172.23.27.156`  
` logging server 10.120.25.197`  
` logging server 172.23.27.146`

`no logging monitor`

The following will cause the *statements* to be executed once per "logging server" line:

`<ConfigBlockCheck boundary-method="line-count" block-start="^logging server" line-count="1">`  
`  statements `  
` </ConfigBlockCheck>`