Any person who institutes an action for money or property, claimed under a contract founded on a gambling consideration, shall forfeit one hundred dollars ($100), recoverable in any court having cognizance; one half (½) to the person who shall sue therefor, the other one half (½) to the county in which action is brought.