A degree-counting formula for a Keller-Segel equation on a surface with boundary | Synapse