57
Pyth, 14 13 characters
L/lbnb"google
Defines a named function y.
This divides the length by 1 if the string is not google and by 0 otherwise. The idea is not novel, but I came up with it independently.
Try it online.
How it works
L Define y(b):
lb Compute l...