You could create a new column, let’s call it H, that calculates whether the number in E is less than the number in G resulting in 1 or 0.
E.g. the formula for H2 could be: =IF(E2<G2,1,0) (use semicolon instead of comma depending on country)
Then you can sum the relevant H range to count all the 1’s: =SUM(H2:H99) (or whatever the relevant H range is)
Welcome to the forum.