title: How to know how many object (for instance button or textview) there are in a layout
body: <p>Is there a way to know how many object of a certain kind (textview or button orimageview etc) there are in a layout. Of course there is a way, but I don't know how to start.</p>