To count the red cells ( where value is less then the preceding cell ) try
Code:
=SUMPRODUCT(--($A$1:$G$2>$B$1:$H$2))+SUMPRODUCT(--($A$1:$A$2<$B$1:$B$2))
For the green cells
Code:
=SUMPRODUCT(--($A$1:$G$2>$B$1:$H$2))+SUMPRODUCT(--($A$1:$A$2>$B$1:$B$2))
Adapt ranges to your needs