Issue #78: implement method countOpenedForTableId 
Add test data
http://github.com/crc83/WebCash/issues/issue/78