Egyébként google a barátod :) android gmail widget counter, kb. 2 másodperc alatt...
http://androidcommunity.com/forums/f23/gmail-unread-mails-widget-25010/