1. Install Metrics:

open eclipse(Kepler) -> Help -> install new software -> add -> type name : Metrics ,
type Location : http://metrics.sourceforge.net/update -> select metrics and press next
 

2. How to use Metrics

in eclipse Package explorer -> right click project -> Properties -> Metrics -> click Enable Metrics -> Apply -> Ok