1. Added a function to get contacts number without calculating
penetration depth.