changed api to seperate size into count and stride.

this way we can later retreive count and stride if we need to