Fix confusion of size and count