method to compute shifts count of user