Thanks, ATpoint. I have checked genomecov with -bg -pc and it is similar to bamtobed outputs. But I will go for genomecov as it sums up overlap regions :
The output of bamtobed:
1 785101 785152 1 785152 785203 4
1 824806 824855 1 824932 824983 3
1 932573 932617 1 932652 932701 1
1 947595 947646 1 947664 947715 11
1 966712 966763 1 966828 966876 7
1 1146938 1146989 1 1147130 1147181 16
1 1237055 1237103 1 1237215 1237265 9
1 1237055 1237103 1 1237215 1237266 1
1 1303125 1303176 1 1303311 1303358 24
The genomecov:
1 785101 785203 4
1 824806 824983 3
1 932573 932701 1
1 947595 947715 11
1 966712 966876 7
1 1146938 1147181 16
1 1237055 1237266 10
1 1303125 1303358 24