Hi there ~
It is common to have this kind of pain after you bump your head on any kind of hard surface. It usually goes away after a few days. However if you do not feel reassured with my answer please have a CT scan
of Head done so as to rule out any serious condition and visit with a doctor to have your results interpreted. Trying over the counter analgesics like ibuprofen
for pain is also a good idea. I hope this helps.
Take care and have a lovely day !