How to Know the total No of activities in a layout ?