function to count fraction of bips present ..