module Follows
  class Follower < Follows::Base

    def self.count(user_id)
      req = Code::Justin::Tv::Feeds::Following::Followsrpc::UserIDReq.new({:user_id => user_id.to_s})

      resp = Follower.client.count_followers(req)

      return nil if resp.nil? || !resp.error.nil?
      return resp.data.count
    end
  end
end
