Extracted VisibleFieldCount outside of mapping method to optimize performance