(GEOT-4963) Added fix for ContentFeatureStore.getCount() with startIndex or MaxFeatures set. Added test cases to ContentFeatureStore and applicible extending classes.