[mapper] implemented sql fetching count in limited collections