I need to count a column only if the corresponding cell in another column is Tuesday. Image example:

At first I tried to use the COUNTIFS function in tandem with WEEKDAY, but I can not get it to work.
=COUNTIFS(B2:B32,TRUE,A2:A32,WEEKDAY(3))
or
=COUNTIFS(B2:B32,IF(A2=WEEKDAY(3),1,0))
Each unit must be counted on Tuesday every week. If they consider the day before or after it is considered late. What should happen, each block must have a count of the number of days that they counted, and then the number of days that they did not count. In the past, I have completed this last part with a simple arithmetic formula based on the number of days in a month. In addition to the two counts, I also need missing cells filled with a red background.
, 1 65 .