Add row counting algorithm