How many budget record has a budget amount smaller than the invested amount?
select count(*) from budget where budgeted < invested