Obama pulls ahead in delegate count