Added method to get subrow count