Detect buttons count on left or right