
        For illustration purposes, we also modify this example so that 
        uncommitted reads are no longer used to enable the 
            <code class="function">count_records()</code>
            
        function. Instead, we simply provide a transaction handle to
            <code class="function">count_records()</code>
            
        so as to avoid the self-deadlock. Be aware that using a transaction handle here rather than
        uncommitted reads will work just as well as if we had contin