Version 4.1 2018.12.29
a changed parameter for counting bars