Density jump for parallel and perpendicular collisionless shocks